package com.xdtech.trans.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-05-26 21:56:45
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="TRANS_ORDER")
public class TransOrder extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="ORDER_NO")
	private String orderNo;
	@Column(name="ORDER_STATUS")
	private String orderStatus;
	@Column(name="RECEIVE_TIME")
	private String receiveTime;
	@Column(name="SEND_UNIT")
	private String sendUnit;
	@Column(name="SENDER")
	private String sender;
	@Column(name="SEND_PHONE")
	private String sendPhone;
	@Column(name="SEND_ADDRESS")
	private String sendAddress;
	@Column(name="RECEIVE_UNIT")
	private String receiveUnit;
	@Column(name="RECEIVER")
	private String receiver;
	@Column(name="RECEIVE_PHONE")
	private String receivePhone;
	@Column(name="RECEIVE_ADDRESS")
	private String receiveAddress;
	@Column(name="GOODS_NAME")
	private String goodsName;
	@Column(name="GOODS_TYPE")
	private String goodsType;
	@Column(name="GOODS_NUM")
	private Integer goodsNum;
	@Column(name="WEIGHT")
	private Double weight;
	@Column(name="VOLUME")
	private Double volume;
	@Column(name="FREIGHT")
	private Double freight;
	@Column(name="SUPPORT_SUM")
	private Double supportSum;
	@Column(name="PREMIUM")
	private Double premium;
	@Column(name="AGENCY_FUND")
	private Double agencyFund;
	@Column(name="AGENCY_HAND_SUM")
	private Double agencyHandSum;
	@Column(name="ARRIVAL_SUM")
	private Double arrivalSum;
	@Column(name="RECEIVE_SUM")
	private Double receiveSum;
	@Column(name="OTHER_SUM")
	private Double otherSum;
	@Column(name="TOTAL")
	private Double total;
	@Column(name="PAY_WEBSITE")
	private String payWebsite;
	@Column(name="SALESMAN")
	private String salesman;
	@Column(name="CREATOR")
	private String creator;
	
	@Column(name="PAY_WEBSITE_ID")
	private Long payWebsiteId;
	@Column(name="START_WEBSITE")
	private String startWebsite;
	@Column(name="START_WEBSITE_ID")
	private Long startWebsiteId;
	@Column(name="END_WEBSITE")
	private String endWebsite;
	@Column(name="END_WEBSITE_ID")
	private Long endWebsiteId;
	@Column(name="ARRIVE_PAY")
	private String arrivePay;
	@Column(name="ORDER_FORM")
	private String orderForm;
	
	
//	@ManyToOne
//    @JoinColumn(name = "START_WEBSITE_ID")
//	private TransWebSite startWebSite;
//	@ManyToOne
//    @JoinColumn(name = "END_WEBSITE_ID")
//	private TransWebSite endWebsite;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public String getOrderStatus()
	{
		return orderStatus;
	}
	public void setOrderStatus(String orderStatus)
	{
		this.orderStatus = orderStatus;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setReceiveTime(String receiveTime) {
		this.receiveTime = receiveTime;
	}
	public String getReceiveTime() {
		return receiveTime;
	}
	public void setSendUnit(String sendUnit) {
		this.sendUnit = sendUnit;
	}
	public String getSendUnit() {
		return sendUnit;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getSender() {
		return sender;
	}
	public void setSendPhone(String sendPhone) {
		this.sendPhone = sendPhone;
	}
	public String getSendPhone() {
		return sendPhone;
	}
	public void setSendAddress(String sendAddress) {
		this.sendAddress = sendAddress;
	}
	public String getSendAddress() {
		return sendAddress;
	}
	public void setReceiveUnit(String receiveUnit) {
		this.receiveUnit = receiveUnit;
	}
	public String getReceiveUnit() {
		return receiveUnit;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	public String getReceiver() {
		return receiver;
	}
	public void setReceivePhone(String receivePhone) {
		this.receivePhone = receivePhone;
	}
	public String getReceivePhone() {
		return receivePhone;
	}
	public void setReceiveAddress(String receiveAddress) {
		this.receiveAddress = receiveAddress;
	}
	public String getReceiveAddress() {
		return receiveAddress;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}
	public String getGoodsType() {
		return goodsType;
	}
	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}
	public Integer getGoodsNum() {
		return goodsNum;
	}
	public void setWeight(Double weight) {
		this.weight = weight;
	}
	public Double getWeight() {
		return weight;
	}
	public void setVolume(Double volume) {
		this.volume = volume;
	}
	public Double getVolume() {
		return volume;
	}
	public void setFreight(Double freight) {
		this.freight = freight;
	}
	public Double getFreight() {
		return freight;
	}
	public void setSupportSum(Double supportSum) {
		this.supportSum = supportSum;
	}
	public Double getSupportSum() {
		return supportSum;
	}
	public void setPremium(Double premium) {
		this.premium = premium;
	}
	public Double getPremium() {
		return premium;
	}
	public void setAgencyFund(Double agencyFund) {
		this.agencyFund = agencyFund;
	}
	public Double getAgencyFund() {
		return agencyFund;
	}
	public void setAgencyHandSum(Double agencyHandSum) {
		this.agencyHandSum = agencyHandSum;
	}
	public Double getAgencyHandSum() {
		return agencyHandSum;
	}
	public void setArrivalSum(Double arrivalSum) {
		this.arrivalSum = arrivalSum;
	}
	public Double getArrivalSum() {
		return arrivalSum;
	}
	public void setReceiveSum(Double receiveSum) {
		this.receiveSum = receiveSum;
	}
	public Double getReceiveSum() {
		return receiveSum;
	}
	public void setOtherSum(Double otherSum) {
		this.otherSum = otherSum;
	}
	public Double getOtherSum() {
		return otherSum;
	}
	public void setTotal(Double total) {
		this.total = total;
	}
	public Double getTotal() {
		return total;
	}
	public void setPayWebsite(String payWebsite) {
		this.payWebsite = payWebsite;
	}
	public String getPayWebsite() {
		return payWebsite;
	}
	public void setSalesman(String salesman) {
		this.salesman = salesman;
	}
	public String getSalesman() {
		return salesman;
	}
//	public TransWebSite getStartWebSite()
//	{
//		return startWebSite;
//	}
//	public void setStartWebSite(TransWebSite startWebSite)
//	{
//		this.startWebSite = startWebSite;
//	}
//	public TransWebSite getEndWebsite()
//	{
//		return endWebsite;
//	}
//	public void setEndWebsite(TransWebSite endWebsite)
//	{
//		this.endWebsite = endWebsite;
//	}
	
	public Long getPayWebsiteId()
	{
		return payWebsiteId;
	}
	public String getStartWebsite()
	{
		return startWebsite;
	}
	public void setStartWebsite(String startWebsite)
	{
		this.startWebsite = startWebsite;
	}
	public Long getStartWebsiteId()
	{
		return startWebsiteId;
	}
	public void setStartWebsiteId(Long startWebsiteId)
	{
		this.startWebsiteId = startWebsiteId;
	}
	public String getEndWebsite()
	{
		return endWebsite;
	}
	public void setEndWebsite(String endWebsite)
	{
		this.endWebsite = endWebsite;
	}
	public Long getEndWebsiteId()
	{
		return endWebsiteId;
	}
	public void setEndWebsiteId(Long endWebsiteId)
	{
		this.endWebsiteId = endWebsiteId;
	}
	public void setPayWebsiteId(Long payWebsiteId)
	{
		this.payWebsiteId = payWebsiteId;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public String getArrivePay() {
		return arrivePay;
	}
	public void setArrivePay(String arrivePay) {
		this.arrivePay = arrivePay;
	}
	public String getOrderForm() {
		return orderForm;
	}
	public void setOrderForm(String orderForm) {
		this.orderForm = orderForm;
	}
	
	
}
